<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<script>
  let response={
    data:{code:0,data:["111","2222"]},
    config:{config:"1111"},
    status:200
  }

  // let data = response.data;
  // let status = response.status;
  // console.log(data,status) // {code:0,data:["111","2222"]} ,200

  // 使用解构来简化取值的语句
  let {data,status} = response;
  console.log(data,status);

</script>
</body>
</html>
